<?php

defined("IN_CART") || die;

abstract class CBase {
	
	/**
     * 自动变量设置
     */
	public function __set($name,$value) {
		if(property_exists($this,$name)) {
			$this->$name = $value;
		}
	}


	/**
     * 自动变量获取
     */
	public function __get($name) {
		return isset($this->$name) ? $this->$name: false;
	}
	


	/**
      * 输出类的实例化对象
      *
      */
    public function __toString() {
		return get_class($this);
	}
}